package com.zhidisoft.crm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zhidisoft.crm.dao.ISysUserRolemapper;
import com.zhidisoft.crm.entity.SysUserRole;
import com.zhidisoft.crm.service.ISysUserRoleService;
@Service
@Transactional
public class SysUserRoleImpl implements ISysUserRoleService{

	@Autowired
	ISysUserRolemapper iSysUserRolemapper;
	
	@Override
	public void save(SysUserRole sur) {
		iSysUserRolemapper.save(sur);
	}

	@Override
	public void deleteById(String id) {
		iSysUserRolemapper.deleteById(id);
		
	}

	@Override
	public String findRoleId(String user_id) {
		return iSysUserRolemapper.findRoleId(user_id);
	}

}
